package com.neusoft.nep.supervisor;

import com.neusoft.nep.supervisor.controller.SupervisorController;
import com.neusoft.neu24.nep.entity.Member;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * MainApp Main
 *
 * @author Administrator
 * @version 2024/05/24 10:07
 **/
public class MainApp {

    public static void main(String[] args) {
        ApplicationContext context =new ClassPathXmlApplicationContext("spring-main.xml");
        SupervisorController  supervisorController  = (SupervisorController) context.getBean("supervisorController");
        Member member = supervisorController.login("ttc", "666");
        System.out.println(member);
        System.out.println("Hello World!");

        SupervisorController  supervisorController1  = (SupervisorController) context.getBean("supervisorController");
        Member member1 = supervisorController1.login("ttc", "666");
        System.out.println(member1);
        System.out.println("Hello World!");
    }
}